package com.beans;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class BeanScopes2 {

    @Autowired
    private User user3;

    public User getUser2(){
        User user2 = user3;
        return user2;
    }

}
